import QtQuick 2.5
import QtQuick.Controls 2.1
import ".."

Rectangle
{
    id: myStatusIcon
    width: 66
    height: 50
    radius: 10
    color: "#006AEE"
    property alias source: icon.source
    property alias name: title.text
    property alias text: status.text

    Image
    {
        id: icon
        anchors.top: parent.top
        anchors.topMargin: 5
        anchors.left: parent.left
        anchors.leftMargin: 10
    }
    Text
    {
        id: title
        font.family: Common.fontMain
        font.pixelSize: 14
        color: "white"
        anchors.right: parent.right
        anchors.rightMargin: 10
        anchors.verticalCenter: icon.verticalCenter
    }
    Rectangle
    {
        height: 1
        width: parent.width
        color: "#00B6FF"
        anchors.top: icon.bottom
        anchors.topMargin: 5
    }
    Text
    {
        id: status
        font.family: Common.fontMain
        font.pixelSize: 18
        color: "white"
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.bottom: parent.bottom
        anchors.bottomMargin: 4
    }
}
